package com.itheima4;
//定义一个学生类的标准格式
public class students {
    private String name;
    //为了方便管理这里的years直接用了String类
    private String years;

    public students() {
    }

    public students(String name, String years) {
        this.name = name;
        this.years = years;

    }

    public String getYears() {
        return years;
    }

    public void setYears(String years) {
        this.years = years;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
